<include file="../header" />
<body class="J_scroll_fixed">

<form class="well form-search" method="post" style="float:left;width:100%;" action="{:U('sale/index')}">
    <div class="search_type cc mb10">
        <div class="mb10">
        <span class="mr20">
                    店铺选择：{:getShopSelectHtml($shopId,1)}
                    日期选择：
                    <input type="text" name="startTime" class="input length_2 J_date" value="{$startTime}" autocomplete="off">-<input type="text" name="endTime" class="input length_2 J_date" value="{$endTime}" autocomplete="off">
            <button class="btn btn-primary">搜索</button>
            <a class="btn" href="{:U('sale/index')}">重置</a>
        </span>
        </div>
    </div>
</form>
<div class="wrap J_check_wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:U('sale/add')}">添加会籍顾问</a></li>
    </ul>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>编号</th>
            <th>店铺名称</th>
            <th>姓名</th>
            <th>推荐码</th>
            <th>创建时间</th>
            <th>销售业绩</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.sale_id}</td>
                <td>{$vo.shop_name}</td>
                <td>{$vo.name}</td>
                <td>{$vo.code}</td>
                <td>{$vo.create_time}</td>
                <td>{$vo.total_amount}</td>
                <td>
                    <a href='{:U("sale/edit",array("id"=>$vo["sale_id"]))}'>修改</a> |
                    <a class="J_ajax_del" href="{:U('sale/delete',array('id'=>$vo['sale_id']))}">删除</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>